package com.uinnova.product.eam.service.cmdb.flowable;

import lombok.Data;

import java.util.Map;

@Data
public class FromValue {
    /**
     * 名称
     */
    private String name;

    /**
     * 短名称
     */
    private String shortName;

    /**
     * 系统状态 {"label":"在建", "value":"0"}、{"label":"已上线", "value":"1"} 、{"label":"已下线", "value":"2"}、{"label":"试运行", "value":"3"}
     */
    private Map<String, String> sysStatus;

    /**
     * 是否为子系统 {"label": "父系统", "value":"0"}、{"label": "子系统", "value":"1"}
     */
    private Map<String, String> _category;

    /**
     * 构建年份
     */
    private String buildYear;

    /**
     * 描述信息
     */
    private String describe;

    /**
     * cicode
     */
    private String eamId;

    public void setSysStatus(String label) {

        this.sysStatus =  SysStatusEnum.getMapByLabel(label);
    }

    public void set_category(String label) {

        this._category =  CategoryEnum.getMapByLabel(label);
    }




}
